package com.example.check_oa.controller;

import com.example.comment_oa.pojos.attendance.MouthAtVo;
import com.example.check_oa.model.service.MouthAtService;
import com.example.comment_oa.response.AjaxResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("checkOa/company/attendance")
public class GuiDController {
    @Resource
    MouthAtService mouthAtService;
    @PostMapping("mouthGuiD")
    public AjaxResponse add(@RequestBody List<MouthAtVo> mouthAtList){
        int add = mouthAtService.add(mouthAtList);
        return AjaxResponse.success(add);
    }

}
